package customer.zspt.cn.customer.components.chat.ChatOrderContent.OrderElementPg;

import android.content.Context;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;

import customer.zspt.cn.customer.R;

/**
 * 多行输入框
 */

public class MoreEtInputView extends BaseView {
    private  EditText input_et;
    private  TextView title;

    /**
     *
     * @param context
     * @param titleValues 标题
     * @param defaultVaules 默认值
     */
    public MoreEtInputView(Context context,String titleValues,String defaultVaules) {
        super(context,titleValues);
        View.inflate(context, R.layout.chat_order_content_more_etinput,this);
        input_et = (EditText)findViewById(R.id.input_et);
        title = (TextView) findViewById(R.id.title);
        title.setText(titleValues);
        input_et.setText(defaultVaules);
    }
    @Override
    public String result() {
        return input_et.getText().toString();
    }
}
